package com.ssy.lingxi.pay.api.common;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 建行数字人民币支付结果
 * @author jw.chen
 * @version 2.0.0
 * @date 2021/12/28
 */
public enum CcbDigitalPayResultEnum {

    SUCCESS("00", "成功，中断轮询"),
    FAIL("01", "失败，中断轮询"),
    NOT_SURE("02", "不确定，继续轮询");

    private String code;
    private String message;

    CcbDigitalPayResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), Integer.valueOf(this.code));
    }
}
